package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 打赏，默认翻译和原创文件开启打赏
 *
 * @author 梁云亮
 */
@ApiModel(value = "Domain:UserBlogReward")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_user_blog_reward")
public class UserBlogReward implements Serializable {
    private static final long serialVersionUID = 1393300977128097372L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 打赏人编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "打赏人编号")
    private Integer userId;

    /**
     * 被打赏博客编号
     */
    @TableField(value = "blog_id")
    @ApiModelProperty(value = "被打赏博客编号")
    private Integer blogId;

    /**
     * 打赏的币值
     */
    @TableField(value = "hcoin")
    @ApiModelProperty(value = "打赏的币值")
    private Integer hcoin;

    /**
     * 打赏时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "打赏时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
